using System;
using System.Diagnostics;

using FineCollection.Intf;



namespace FineCollection.Utils
{
    internal static class DebugViewUtils
    {

        internal static Array MakeArray<T>(int firstIndex, int count)
        {
            int[] lenths = new[] { count };
            int[] lowers = new[] { firstIndex };

            Array debugArray =
                Array.CreateInstance(typeof(T), lenths, lowers);

            return debugArray;
        }


        internal static Array MakeArray<T>(T[] sourceArray, int firstIndex, int count)
        {
            Array debugArray = MakeArray<T>(firstIndex, count);
            Array.Copy(sourceArray, debugArray, count);
            return debugArray;
        }

    }
}